<?php

class Application_Form_Productaddinfo extends Zend_Form {
    
    public function init() {
        $this->setName('Productaddinfo');
        
        
        $product_option_name = new Zend_Form_Element_Multiselect('product_option_name');
        $product_option_name->setLabel('Chi tiết')
                ->setRequired(true)
                ->addFilters(array('StripTags', 'StringTrim'))
                ->addValidator('NotEmpty')
                ->setRegisterInArrayValidator(false);
     
               
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đồng ý');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        $this->addElements(array($product_option_name, $btn_submit, $btn_cancel
        ));
    }
}